package PinDuoDuo;

import org.junit.After;
import org.junit.Test;

import java.io.ByteArrayInputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Solution5 {
    static int a;

    /**
     * 按行输入参数
     * @param args
     */
    public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        //记得清空输入
        List<List<Integer>> list=new ArrayList<List<Integer>>();
        List<Integer> list1=new ArrayList<Integer>();
        while(sc.hasNextLine()) {
            String s=sc.nextLine().trim();
            String[] str=s.split(" ");
            for(int i=0;i<str.length;i++) {
                list1.add(Integer.parseInt(str[i]));
            }
            list.add(list1);
        }
        System.out.println(list.toString());
    }


    @Test
    public void test1(){
        String data = "1 3\n" +
                "1 0\n" +
                "0 0\n" +
                "-1 0\n" +
                "1 1";
        System.setIn(new ByteArrayInputStream(data.getBytes()));
        String[] args={};
        main(args);
    }
    @After
    public void after(){
        System.out.println(a);
    }




}
